package org.idea.spring.aop.version2.service;

import org.idea.spring.aop.version2.annotation.IAfter;
import org.idea.spring.aop.version2.annotation.IAspect;
import org.idea.spring.aop.version2.annotation.IBefore;
import org.idea.spring.aop.version2.annotation.IPointcut;

/**
 * @Author linhao
 * @Date created in 4:54 下午 2021/5/14
 */
@IAspect
public class IAspectDemo {

    @IPointcut(value = "org.idea.spring.aop.version2.service.*")
    public void pointCut(){

    }

    @IBefore(value = "pointCut")
    public void before(){
        System.out.println(" ======= this is before");
    }

    @IAfter(value = "pointCut")
    public void after(){
        System.out.println(" ======= this is after");
    }
}
